Setting the window size for applications
Before you can define the size of the window for your application you have to decide whether the size of the application window is fixed, landscape, portrait, or dynamically resizable.
All screen areas outside of the Kanzi application area are covered with black bars.
Setting the window size for an application
To set the window size for your application, in the Project select the Screen object and in the Properties set the following properties:
- For a fixed size window, set Screen Resolution to either a specific resolution or set it to Custom.
- For a resizable window, set Metrics Type to Relative and define the relative Width and Height.
Making a full-screen application
To make a full-screen application, in the Project select the Screen object and in the Properties set the following properties:
- Screen Resolution property to Custom
- Metrics Type to Relative
- Width and Height to 1
With these settings you set the size of your application to occupy the entire screen, regardless of the size of the screen.
To override the above settings in the root layer of your application:
- In the Project select the root layer
- In the Properties click Add Properties and add the following properties:
- Layout Width
- Layout Height
- Layer Aspect Ratio
Open topic with navigation